package com.pay.constants;

public enum ReturnCode {

	SUCCESS("00","操作成功"),
	
	LOGIN_ERROR("01", "用户名或密码错误"),
	OPER_STATE_ERROR("02", "用户状态异常"),
	
	FAIL("98","操作失败"),
	SYSTEM_ERROR("99","系统内部错误");
	
	private String code;//错误编号
	private String msg;//错误信息
	
	private ReturnCode(String code, String msg){
		this.code = code;
		this.msg = msg;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}
	
	@Override
	public String toString() {
		return "code:"+this.getCode()+",msg:"+this.getMsg();
	}
	
}
